use axum::{http::StatusCode, Json};
use serde::Serialize;

#[derive(Debug, Serialize)]
pub struct ServerStatus {
    pub running: bool,
    pub uptime: u64,
    pub version: String,
}

pub async fn get_server_status() -> Json<ServerStatus> {
    Json(ServerStatus {
        running: true,
        uptime: 0,
        version: env!("CARGO_PKG_VERSION").to_string(),
    })
}

pub async fn start_server() -> StatusCode {
    // TODO: Implement server start
    StatusCode::OK
}

pub async fn stop_server() -> StatusCode {
    // TODO: Implement server stop
    StatusCode::OK
}
